From c3cfccdd007a81bc6cfc31851111523880089cbd Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Wed, 20 Jul 2016 17:10:43 +0100 Subject: [PATCH] xen/arm: system: Use the correct parameter name in local_irq_restore The parameter to store the flags is called 'x' and not 'flags'. Thankfully all the user of the macro is passing 'flags'. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- xen/include/asm-arm/arm32/system.h | 2 +- xen/include/asm-arm/arm64/system.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-arm/arm32/system.h b/xen/include/asm-arm/arm32/system.h index b47b942e03..c617b40438 100644 --- a/xen/include/asm-arm/arm32/system.h +++ b/xen/include/asm-arm/arm32/system.h @@ -24,7 +24,7 @@ asm volatile ( \ "msr cpsr_c, %0 @ local_irq_restore\n" \ : \ - : "r" (flags) \ + : "r" (x) \ : "memory", "cc"); \ }) diff --git a/xen/include/asm-arm/arm64/system.h b/xen/include/asm-arm/arm64/system.h index 6efced3b3f..2e2ee212a1 100644 --- a/xen/include/asm-arm/arm64/system.h +++ b/xen/include/asm-arm/arm64/system.h @@ -40,7 +40,7 @@ asm volatile ( \ "msr daif, %0 // local_irq_restore" \ : \ - : "r" (flags) \ + : "r" (x) \ : "memory"); \ }) -- 2.30.2